package org.jeecg.modules.project.model.params;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @ProjectName: jeecg-boot-parent
 * @ClassName: org.jeecg.modules.project.params.ProjectInfoParam
 * @Version: 1.0
 */
@Data
public class ProjectInfoParam {

    @ApiModelProperty(value = "第三方项目ID")
    private Long projectId;

    @ApiModelProperty(value = "应用编码")
    private String appCode;

    @ApiModelProperty(value = "apiId")
    private Integer apiId;

    @ApiModelProperty(value = "projectApiId不能为空")
    private Integer projectApiId;

    /**
     * 工程名称
     */
    @ApiModelProperty(value = "工程名称")
    private String projectName;
    /**
     * 工程地址
     */
    @ApiModelProperty(value = "工程地址")
    private String projectAddress;
    /**
     * 模型ID
     */
    @ApiModelProperty(value = "模型Guid")
    private String modelInfoGuid;

    /**
     * 启用状态
     */
    @ApiModelProperty(value = "启用状态")
    @Dict(dicCode = "ENABLE_FLAG")
    private Integer enableFlag;
    /**
     * 删除状态
     */
    @ApiModelProperty(value = "删除标志(0-正常,1-已删除)")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}